<template>
  <div class="loading_container" v-show="showMask">
    <van-overlay
      :show="showMask"
      z-index="9999"
      :custom-style="{ background: 'rgba(255,255,255,0)' }"
    >
      <div class="wrapper">
        <van-loading type="spinner" color="var(--text-color)" />
      </div>
    </van-overlay>
  </div>
</template>

<script>
export default {
  name: 'loading-popup',
  props: {
    showMask: {
      type: Boolean,
      default: false
    }
  },
  data () {
    return {}
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.loading_container {
  width: 100%;
  height: 100vh;
  z-index: 9999;
  position: absolute;
  .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 9999;
  }
}
</style>
